package com.designpatternspart2.factorymethod;

/**
 * Author: Dwayne
 * 
 */
public class AnimalFactory
{
    public Animal getAnimal(String type)
    {
        if ("canine".equals(type))
        {
            return new Dog();
        }
        else
        {
            return new Cat();
        }
    }
}
